#include<iostream>
using namespace std;

//一些前置声明
# define TRUE 1
# define FALSE 0
# define OK 1
# define ERROR 0
# define INFEASIBLE -1
#define OVERFLOW -2
#define MAXSIZE 10
typedef int Status ;
typedef int ElemType;


//因为这里是要对线性表进行合并,所以数据定义为int
//顺序表数据的定义
struct number{
    int num;
};

//顺序表节点的定义
typedef struct Lnode{
    struct number *elem;    //存储数据
    int length;     //顺序表长度
}SqList;

//顺序表的初始化
Status InitList_Sq (SqList &L);
//销毁线性表
void DestroyList (SqList &L);
int GetList (SqList &L);
int ListEmpty(SqList &L);
int GetElem(SqList &L,int i,struct number &e);
int Locate (SqList L,struct number e);
Status ListInsert(SqList &L,int i,int  e);
Status ListDelete(SqList &L,int i,int &e);
Status DisplayList (SqList L);
